#include <regex>
#include <string>
#include <ctime>
#include <iostream>
using namespace std;
void test01()
{
    string pattern("[^c]ei");
    pattern = "[[:alpha:]]*" + pattern + "[[:alpha:]]*";
    regex r(pattern);
    smatch results;
    string test_str = "receipt freind theif receive";
    if (regex_search(test_str, results, r))
    {
        cout << results.str() << endl;
    }
}
int main(int argc, char const *argv[])
{
    auto start = clock();
    test01();
    auto end = clock();
    cout << end - start << endl;

    return 0;
}
